﻿using System;
using System.Collections.Generic;
using System.Text;
using flightquiz.Common;

namespace flightquiz.Data
{
    [Serializable]
    public class Answer : IRender
    {
        public string ID { get; set; }
        public string Title { get; set; }
        public bool IsCorrect { get; set; }

        public Answer() { }
        public Answer(string id, string title, bool isCorrect)
        {
            this.ID = id;
            this.Title = title;
            this.IsCorrect = isCorrect;
        }

        public override string ToString()
        {
            return ID + "、" + Title;
        }

        public string ToHTML()
        {
            return ID + "、" + Title;
        }
    }
}
